import request from "@/utils/request.js";


// 获取我的任务列表
export const getMyTaskList = (data, query = {}) => {
    return request({
        method: 'post',
        url: '/bussiness/TASK/list',
        params: query,
        data: data,
        isEncrypt: false
    })
}

// 接收任务
export const acceptTask = (id) => {
    return request({
        method: 'post',
        url: '/bussiness/TASK/recTask',
        params: {
            id:id
        },
        isEncrypt: false
    })
}

// 完成任务
export const completeTask = (data) => {
    return request({
        method: 'post',
        url: '/bussiness/TASK/finishTask',
        data: data,
        isEncrypt: false
    })
}